package com.hl.pojo;

@SuppressWarnings("all")
public class DictionaryId implements java.io.Serializable {

	// Fields

	private Integer dictTypeId;
	private Integer dictId;

	// Constructors

	/** default constructor */
	public DictionaryId() {
	}

	/** full constructor */
	public DictionaryId(Integer dictTypeId, Integer dictId) {
		this.dictTypeId = dictTypeId;
		this.dictId = dictId;
	}

	// Property accessors

	public Integer getDictTypeId() {
		return this.dictTypeId;
	}

	public void setDictTypeId(Integer dictTypeId) {
		this.dictTypeId = dictTypeId;
	}

	public Integer getDictId() {
		return this.dictId;
	}

	public void setDictId(Integer dictId) {
		this.dictId = dictId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof DictionaryId))
			return false;
		DictionaryId castOther = (DictionaryId) other;

		return ((this.getDictTypeId() == castOther.getDictTypeId()) || (this.getDictTypeId() != null && castOther.getDictTypeId() != null && this.getDictTypeId().equals(
				castOther.getDictTypeId())))
				&& ((this.getDictId() == castOther.getDictId()) || (this.getDictId() != null && castOther.getDictId() != null && this.getDictId().equals(castOther.getDictId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getDictTypeId() == null ? 0 : this.getDictTypeId().hashCode());
		result = 37 * result + (getDictId() == null ? 0 : this.getDictId().hashCode());
		return result;
	}

}